//
//  CJCommissionCell.m
//  Boss
//
//  Created by admin on 2018/9/13.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "CJCommissionCell.h"
@interface CJCommissionCell()

@property (strong, nonatomic) IBOutlet UIImageView *userImageView;
@property (strong, nonatomic) IBOutlet UILabel *userName;
@property (strong, nonatomic) IBOutlet UILabel *clickCount;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;
@property (strong, nonatomic) IBOutlet UIImageView *vipImageView;
@property (strong, nonatomic) IBOutlet UIImageView *authImageView;

@end
@implementation CJCommissionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.userImageView setCornerRadius:20.f];
    // Initialization code
}
-(void)setModel:(CJCommissionModel *)model
{
    _model = model;
    [self.vipImageView showVipImageViewStatusWithVipId:model.vipId];
    self.userName.text = model.userName;
    self.clickCount.text = [NSString stringWithFormat:@"已获得%@次点击",model.totalClick];
    self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.profitAmount.floatValue/1000.0];
    
    [self.userImageView sd_setImageWithURL:[NSURL URLWithString:model.userPhoto]];
}
-(void)setListModel:(CJBrowseListModel *)listModel
{
    _listModel = listModel;
    
    [self.vipImageView showVipImageViewStatusWithVipId:listModel.vipId];
    self.userName.text = listModel.userName;
    self.clickCount.text =listModel.companyName;
    [self.userImageView sd_setImageWithURL:[NSURL URLWithString:listModel.userPhoto]];
    self.priceLabel.hidden = YES;
    [self.authImageView showPersonAuthenticationWithType:listModel.userAuth];
    
    
    
    
    
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
